<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?=$this->session->config->title?></title>
    <link rel="stylesheet" type="text/css" href="<?=base_url('public/css/common.css')?>
    "/>
    <link rel="stylesheet" type="text/css" href="<?=base_url('public/css/main.css')?>
    "/>
    <script type="text/javascript" src="<?=base_url('public/js/libs/modernizr.min.js')?>"></script>
    <script type="text/javascript" src="http://libs.baidu.com/jquery/1.8.3/jquery.min.js"></script>
    <script type="text/javascript" src="<?=base_url('public/lib/jqusey.form.js')?>"></script>
    <script type="text/javascript" src="<?=base_url('public/lib/layer/layer.js')?>"></script>
</head>
<body>

    <div class="topbar-wrap white">
        <div class="topbar-inner clearfix">
            <div class="topbar-logo-wrap clearfix">
                <h1 class="topbar-logo none">
                    <a href="index.html" class="navbar-brand">后台管理</a>
                </h1>
                <ul class="navbar-list clearfix">
                    <!-- <li>
                    <a class="on" href="index.html">首页</a>
                </li>
                -->
                <li><?=$this->session->config->title?></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <li>
                    <a href="<?=site_url();?>">登录</a>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <!--/sidebar-->
    <div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="<?=site_url('welcome/registered')?>" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th width="30%"> <i class="require-red">*</i>
                                    登录帐号
                                </th>
                                <td>
                                    <input class="common-text required" id="title" name="user_name" size="50" value="" type="text"></td>
                            </tr>
                            <tr>
                                <th> <i class="require-red">*</i>
                                    登录密码
                                </th>
                                <td>
                                    <input class="common-text required" id="title" name="pass" size="50" value="" type="password"></td>
                            </tr>
                            <tr>
                                <th>
                                    <i class="require-red">*</i>
                                    确认密码
                                </th>
                                <td>
                                    <input class="common-text required" id="title" name="password_1" size="50" value="" type="password"></td>
                            </tr>
                            <tr>
                                <th>
                                    <i class="require-red">*</i>
                                    真实姓名
                                </th>
                                <td>
                                    <input class="common-text required" id="title" name="name" size="50" value="" type="text"></td>
                            </tr>

                            <tr>
                                <th>
                                    <i class="require-red">*</i>
                                    联系电话
                                </th>
                                <td>
                                    <input class="common-text required" id="title" name="phone" size="50" value="" type="text"></td>
                            </tr>

                            <tr>
                                <th>
                                    <i class="require-red">*</i>
                                    联系邮箱
                                </th>
                                <td>
                                    <input class="common-text required" id="title" name="email" size="50" value="" type="text"></td>
                            </tr>

                            <tr>
                                <th>QQ：</th>
                                <td>
                                    <input class="common-text" name="qq" size="50" value="" type="text"></td>
                            </tr>
                            <tr>
                                <th>weixin：</th>
                                <td>
                                    <input class="common-text" name="weixin" size="50" value="" type="text"></td>
                            </tr>
                            <tr>
                                <th>地址：</th>
                                <td>
                                    <input class="common-text" name="address" size="50" value="" type="text"></td>
                            </tr>
                            <tr>
                                <th>单位：</th>
                                <td>
                                    <input class="common-text" name="company" size="50" value="" type="text"></td>
                            </tr>

                            <tr>
                                <th></th>
                                <td>
                                    <input type="hidden" name="pid" value="<?=$pid?>">
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button"></td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
<script type="text/javascript">
    $('#myform').submit(function() {
        var index = layer.load(2);
        $(this).ajaxSubmit(function(data){
            layer.close(index);
            if(data == 1){
                layer.alert("注册成功！",{
                    icon:1,
                    btn:['登录']
                },function(){
                    location.href='<?=site_url()?>';
                });
            }else{
                layer.alert(data,{
                    icon:2,
                });
            }
        })
        return false;
    })
</script>
</body>
</html>